const express = require('express');
const router = express.Router();
const routers = require('./routers');

for (const route of routers) {
  router.use(route.path, route.component); // 路由处理
}

module.exports = router;
